package Map
{
	import DataStore.BmpDataPool;
	import flash.display.Bitmap;
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.geom.Point;
	import flash.geom.Rectangle;
	import flash.text.TextField;
	import GameLogic.ENUM;
	import GameLogic.Game;
	import GameLogic.LuaEditer;
	import LoadUnit.LoadManager;
	public class MapManager
	{
		public static var Width:int;
		public static var Height:int;
		public static var TileMap:Sprite;
		public static var TileSize:int;
		
		public function MapManager()
		{
		}
		
		public static function Init():void
		{
			Width = Game.Width;
			Height = Game.Height;
			TileSize = 50;
			TileMap = new Sprite();
			Game.Map.addChild(TileMap);
		}
		
		public static function PutTile(_type:int, _x:int, _y:int):void
		{
			var tile:Bitmap = new Bitmap(BmpDataPool.MapPool[_type]);
			tile.x = _x * TileSize;
			tile.y = _y * TileSize;
			TileMap.addChild(tile);
		}
		

		
		
		
	}
}